﻿Imports NHibernate
Imports NHibernate.Cfg
Imports NHibernate.Criterion
Imports System.ComponentModel

Namespace productos.dal.dto

    Public Class stock
        Implements IPermanentRecord
        Private _id As Integer
        Private _producto As producto
        Private _cantidad_inicial As Double
        Private _cantidad As Double
        Private _despacho_id As String
        Private _deposito_id As Integer
        Private _deleted As Boolean

        <Browsable(False)>
        Public Overridable Property id As Integer
            Get
                Return _id
            End Get
            Set(ByVal value As Integer)
                _id = value
            End Set
        End Property
        <Browsable(False)>
        Public Overridable Property producto As producto
            Get
                Return _producto
            End Get
            Set(ByVal value As producto)
                _producto = value
            End Set
        End Property
        <DisplayName("Cantidad Inicial")>
        Public Overridable Property cantidad_inicial As Double
            Get
                Return _cantidad_inicial
            End Get
            Set(ByVal value As Double)
                _cantidad_inicial = value
            End Set
        End Property
        <DisplayName("Cantidad Actual")>
        Public Overridable Property cantidad As Double
            Get
                Return _cantidad
            End Get
            Set(ByVal value As Double)
                _cantidad = value
            End Set
        End Property
        <DisplayName("Numero de Despacho")>
        Public Overridable Property despacho_id As String
            Get
                Return _despacho_id
            End Get
            Set(ByVal value As String)
                _despacho_id = value
            End Set
        End Property
        <DisplayName("Deposito")>
        Public Overridable Property deposito_id As Integer
            Get
                Return _deposito_id
            End Get
            Set(ByVal value As Integer)
                _deposito_id = value
            End Set
        End Property
        <Browsable(False)>
        Public Overridable Property deleted As Boolean Implements IPermanentRecord.deleted
            Get
                Return _deleted
            End Get
            Set(ByVal value As Boolean)
                _deleted = value
            End Set
        End Property
    End Class
End Namespace
